package com.topgay.domain;

import java.io.Serializable;

public class AnswerForFYTL implements Serializable{
	private int	no;
	private int answer;
	public AnswerForFYTL(int no, int answer) {
		super();
		this.no = no;
		this.answer = answer;
	}
	public AnswerForFYTL() {
		super();
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public int getAnswer() {
		return answer;
	}
	public void setAnswer(int answer) {
		this.answer = answer;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + answer;
		result = prime * result + no;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AnswerForFYTL other = (AnswerForFYTL) obj;
		if (answer != other.answer)
			return false;
		if (no != other.no)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Answer [no=" + no + ", answer=" + answer + "]";
	}
	
	
}
